/*
 * ReqIfImportDto.java
 * Copyright 2022 HuaWang Tech, all rights reserved.
 * HuaWang PROPRIETARY/CONFIDENTIAL, any form of usage is subject to approval.
 */

package com.huawang.mdesign.model.service.request;

import com.huawang.business.constants.ParamErrorConstants;
import com.huawang.business.dto.ProjectIdDTO;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Map;

@Data
public class ImportReqIfDTO extends ProjectIdDTO {

    @NotBlank(message = ParamErrorConstants.NO_PROJECT_ID)
    private String projectId;

    private String parentId;

    @NotBlank(message = ParamErrorConstants.NO_FILEPATH)
    private String filePath;

    /**
     * 需求类型
     */
    private Map<String, String> stereotypes;

    /**
     * 属性映射配置
     */
    private Map<String, Map<String, String>> attributesMap;

    /**
     * 关系映射配置
     */
    private Map<String, String> relationsMap;

    /**
     * 是否覆盖更新
     */
    private boolean coverUpdate;

    /**
     * 是否需要生成需求图
     */
    private boolean needAddDiagram;

}
